/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ipodhash;

import ipodhash.beans.Musica;
import ipodhash.beans.Ordena;
import ipodhash.beans.Serializa;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.farng.mp3.MP3File;
import org.farng.mp3.TagException;

/**
 *
 * @author rooke
 */
public class TesteOrdenacao {

    /**
     * @param args the command line arguments
     */
    public static void main2(String[] args) {

        ArrayList<Musica> musicas;
        try {
            musicas = Serializa.desserializaArrayListMusica(1);
            musicas = Ordena.ordenaPorArtistaEAlbum(musicas);
            for (Musica musica : musicas) {
                System.out.println(musica.getChave()+" - "+musica.getArtista() + " " + musica.getAlbum());
            }

        } catch (Exception ex) {
            Logger.getLogger(TesteOrdenacao.class.getName()).log(Level.SEVERE, null, ex);
        }


    }
}
